﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WeSTrip.model
{
    public class TripResultStatus
    {
        public static int STATUS_VALID_TOKEN_CODE = 0;
        public static string STATUS_VALID_TOKEN_TEXT = "Ok";

        public static int STATUS_UNALLOW_IP_CODE = STATUS_VALID_TOKEN_CODE + 1;
        public static string STATUS_UNALLOW_IP_TEXT = "The remote IP {0} is not allowed to use this service";

        public static int STATUS_OUT_DEQUEUE_CODE = STATUS_UNALLOW_IP_CODE + 1;
        public static string STATUS_OUT_DEQUEUE_TEXT = "Out of trip for dequeue";

        public static int STATUS_FULL_SLOT = STATUS_OUT_DEQUEUE_CODE + 1;
        public static string STATUS_FULL_SLOT_TEXT = "Trip is full";

        public static int STATUS_ALREADY_JOIN = STATUS_FULL_SLOT + 1;
        public static string STATUS_ALREADY_JOIN_TEXT = "Already Join this trip";

        public static int STATUS_WAIT_APPROVE = STATUS_ALREADY_JOIN + 1;
        public static string STATUS_WAIT_APPROVE_TEXT = "Wait for Approving";


        public static int STATUS_NEED_REJOIN = STATUS_WAIT_APPROVE + 1;
        public static string STATUS_NEED_REJOIN_TEXT = "Need to Re-Join";

        public static int STATUS_TRIP = STATUS_NEED_REJOIN + 1;
        public static string STATUS_TRIP_TEXT = "Trip is not avaiable";

        public static int STATUS_JOIN_TRIP = STATUS_TRIP + 1;
        public static string STATUS_JOIN_TRIP_TEXT = "This Join Trip request is not avaiable anymore";

        public int statusCode { get; set; }
        public string statusText { get; set; }

    }
}